package com.my.bigsite.common.activiti;

import org.activiti.engine.impl.interceptor.Session;
import org.activiti.engine.impl.interceptor.SessionFactory;
import org.activiti.engine.impl.persistence.entity.GroupIdentityManager;

/**
 * 用户组管理工厂.
 * @author WWY
 *
 */
public class CustomGroupEntityManagerFactory implements SessionFactory {
	
	private  CustomGroupEntityManager customGroupEntityManager;
	 
	public CustomGroupEntityManager getCustomGroupEntityManager() {
		return customGroupEntityManager;
	}

	public void setCustomGroupEntityManager(CustomGroupEntityManager customGroupEntityManager) {
		this.customGroupEntityManager = customGroupEntityManager;
	}

	@Override
	public Class<?> getSessionType() {
		// TODO Auto-generated method stub
		return GroupIdentityManager.class;
	}

	@Override
	public Session openSession() {
		// TODO Auto-generated method stub
		return customGroupEntityManager;
	}

}
